import service from '../request';


const controller = "DictInfo"


function query(data : any) {
	return service({
		method: 'get',
		url: controller,
		params: data,

	})
}
function post(data : any) {
	return service({
		method: 'post',
		url: controller,
		data: data,
	})
}
/*
修改
*/
function put(data : any) {
	return service({
		method: 'put',
		url: controller,
		data: data,
	})
}
/**
* 查找单个
* @param {*} data 
* @returns 
*/
function get(data : any) {
	return service({
		method: 'get',
		url: controller,
		params: data,

	})
}
/**
* 删除
* @param {*} data 
* @returns 
*/
function del(id : number) {
	return service({
		method: 'delete',
		url: controller + "/" + id,
		//params: data,　　　　 

	})
}
function xg(data : any) {
	return service({
		method: 'get',
		url: controller + "/" + data.id,


	})
}
function TypeName(typeName:string):any {
    return service({
        method: 'get',
        url: controller+'/QueryTypeName',
		params:{DictTypeName:typeName}
    }) 
}
function CustoType(data:any) {
    return service({
        method: 'get',
        url: controller+"/CustoType",　　　 
      params:data
    }) 
}

export default {
	query,
	get,
	post,
	put,
	del,
	xg,
	TypeName,
	CustoType
}